import textList from './text/index'
import form from './form/index'
const eleList = [
  textList,
  form,
  {
    label: '页面',
    key: 'page',
    list: [
      {
        label: '表格页面',
        list: [
          {
            label: '通用表格',
            list: []
          }
        ]
      }
    ]
  }
]

function getConfig () {
  const attrs = {
    className: '',
    styles: {}, // 样式
    props: {}, // prop属性
    events: {} // 事件
  }
  // 组件 and 页面
  eleList.forEach(item => {
    if (item.list) {
      // 分组
      item.list.forEach(itm => {
        itm = Object.assign(itm, attrs)
      })
    }
  })
}
getConfig()
export default eleList
